local TypeConst = {}

TypeConst.TYPE_ITEM = 1
TypeConst.TYPE_EQUIPMENT = 2
TypeConst.TYPE_MAGICKEY = 3
TypeConst.TYPE_GEMSTONE = 4
TypeConst.TYPE_RESOURCE = 5

function TypeConst.getName(id)
    for key, value in pairs(TypeConst) do
        -- local index = string.find(key, "TYPE_")
        if value == id then
            return key
        end
    end
end

return TypeConst
